class GoodsModel {
  int id;
  String name;
  String price;
  int wx;
  int ali;
  int apple;
  dynamic xiangbi;

  GoodsModel({this.id, this.name, this.price, this.wx, this.ali, this.apple, this.xiangbi});

  GoodsModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    price = json['price'];
    wx = json['wx'];
    ali = json['ali'];
    apple = json['apple'];
    xiangbi = json['xiangbi'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['price'] = this.price;
    data['wx'] = this.wx;
    data['ali'] = this.ali;
    data['apple'] = this.apple;
    data['xiangbi'] = this.xiangbi;
    return data;
  }

  @override
  String toString() {
    return 'GoodsModel{id: $id, name: $name, price: $price, wx: $wx, ali: $ali, apple: $apple}';
  }

}
